import { lazy } from 'react';
import { UserCircleIcon } from 'tdesign-icons-react';
import { IRouter } from '../index';

const result: IRouter[] = [
  {
    path: '/system-config',
    meta: {
      title: '系统管理',
      Icon: UserCircleIcon,
    },
    children: [
      {
        path: 'config/index',
        Component: lazy(() => import('pages/Config')),
        meta: {
          title: '系统设置',
        },
      },
      {
        path: 'dictionary/index',
        Component: lazy(() => import('pages/Dictionary')),
        meta: {
          title: '字典管理',
        },
      },
    ],
  },
];

export default result;
